package net.sourceforge.jiprof.instrument.clfilter;

import com.mentorgen.tools.profile.instrument.clfilter.ClassLoaderFilter;

public class SpringClassLoaderFilter implements ClassLoaderFilter{
	
	private static final String SPRING_CLASSLOADER = "org.springframework.osgi.util.BundleDelegatingClassLoader";

	public boolean accept(ClassLoader loader) {
		return (loader.getClass().getName().equals(SPRING_CLASSLOADER));
	}

	public boolean canFilter() {
		return true;
	}
}
